package com.rightsidetech.mall.mapper;

import com.rightsidetech.mall.dto.request.BrandPageReq;
import com.rightsidetech.mall.dto.response.BrandListResp;
import com.rightsidetech.mall.dto.response.BrandPageResp;
import com.rightsidetech.mall.entity.MallBrand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallBrandMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MallBrand record);

    int insertSelective(MallBrand record);

    MallBrand selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallBrand record);

    int updateByPrimaryKey(MallBrand record);

    List<BrandPageResp> selectPageList(BrandPageReq req);

    Long selectCountByName(@Param("brandName") String brandName);

    List<BrandListResp> selectList(String brandName);

}